/*
 * @Author: whr2349
 * @Date: 2021-06-28 16:11:37
 * @LastEditors: whr2349
 * @LastEditTime: 2021-07-06 10:23:10
 * @Description: file content
 * @FilePath: \back\app\router.js
 */
'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    router.get('/', controller.home.index);
    router.resources('user', '/api/user', controller.user);
    router.resources('organization', '/api/organization', controller.organization);
    router.get('organization', '/api/organization/tree', controller.organization.treeIndex);
};
